package T2;
/*（3）在测试类Demo中分别创建Student对象和Undergraduate对象，调用它们的show()。
        *测试结果如下：*/
public class Demo{
    public static void main(String[] args) {
        Student s = new Student("冯绍峰",23);
        s.show();
        System.out.println("--------------------------");
        Undergraduate u = new Undergraduate("赵丽",27,"学士");
        u.show();
    }
}
